package com.e3.basdoc.goodscls.model;

import com.e3.template.model.TGFTreeModel;

public class GoodsClsModel extends TGFTreeModel implements GoodsClsFields {

	private static final long serialVersionUID = 5580386082903123870L;
	
	private String code;
	
	private String name;
	
	private Double averagePrice;
	
	private Double averageCost;
	
	private Double averageLeadtime;
	
	private String remark;
	
	public String getCode() {
		return get(GoodsClsModel.CODE);
	}

	public void setCode(String code) {
		set(GoodsClsModel.CODE,code);
	}

	public String getName() {
		return get(GoodsClsModel.NAME);
	}

	public void setName(String name) {
		set(GoodsClsModel.NAME,name);
	}

	public Double getAveragePrice() {
		return get(GoodsClsModel.AVERAGE_PRICE);
	}

	public void setAveragePrice(Double averagePrice) {
		set(GoodsClsModel.AVERAGE_PRICE,averagePrice);
	}

	public Double getAverageCost() {
		return get(GoodsClsModel.AVERAGE_COST);
	}

	public void setAverageCost(Double averageCost) {
		set(GoodsClsModel.AVERAGE_COST,averageCost);
	}

	public Double getAverageLeadtime() {
		return get(GoodsClsModel.AVERAGE_LEADTIME);
	}

	public void setAverageLeadtime(Double averageLeadtime) {
		set(GoodsClsModel.AVERAGE_LEADTIME,averageLeadtime);
	}

	public String getRemark() {
		return get(GoodsClsModel.REMARK);
	}

	public void setRemark(String remark) {
		set(GoodsClsModel.REMARK,remark);
	}
	
	public String toString(){
		return getName();
	}

	public String[] getModelFields() {
		return GoodsClsFields.fieldNames;
	}

	@Override
	public String getParentFiledName() {
		return GoodsClsModel.PARENT_GOODSCLS;
	}

}
